import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
// import { h } from 'vue';
// import { Switch } from 'ant-design-vue';
// import { setRoleStatus } from '/@/api/demo/system';
// import { useMessage } from '/@/hooks/web/useMessage';

export const schemaColumns: BasicColumn[] = [
  {
    title: '模版ID',
    dataIndex: 'templateID',
    width: 110,
  },
  {
    title: '模板名称',
    dataIndex: 'templatename',
  },
  {
    title: '模板代码',
    dataIndex: 'templatecode',
  },
  {
    title: '创建人',
    dataIndex: 'creator',
  },
  {
    title: '创建时间',
    dataIndex: 'createDate',
  },
  {
    title: '修改人',
    dataIndex: 'editor',
  },
  {
    title: '修改时间',
    dataIndex: 'editDate',
  },
  {
    title: '说明',
    dataIndex: 'templateDescribe',
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'templatename',
    label: '流程模板名称',
    component: 'Input',
    // labelWidth: 68,
    colProps: { span: 6 },
    componentProps: {
      placeholder: '请输入流程模板名称',
    },
  },
  {
    field: 'templatecode',
    label: '流程模板代码',
    component: 'Input',
    // labelWidth: 68,
    colProps: { span: 6 },
    componentProps: {
      placeholder: '请输入流程模板代码',
    },
  },
  {
    field: 'CreateDate',
    label: '创建时间',
    component: 'RangePicker',
    // labelWidth: 68,
    componentProps: {
      showTime: false,
    },
    colProps: { span: 6 },
  },
];
